package com.emptyMe.pet.domain;

import com.emptyMe.org.domain.Shop;
import com.emptyMe.org.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Pet {
    private Long id;
    private String name;
    private Double saleprice;
    private Double costprice;
    private String resources;
    private Long state = 0L;
    private Long type_id;
    private PetType petType;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime = new Date();
    private Long shop_id;
    private Long user_id;
    private Long search_master_msg_id;
    private Shop shop;
    private User user;
    private MasterMsg masterMsg;
}
